<table class="table">
    <thead>
        <tr>
            <td>Tanggal</td><td>Nomor Kamar</td><td>Tipe Kamar</td><td>Jenis Rate</td><td>Harga</td><td></td>
        </tr>
    </thead>
    <?php
    foreach ($data as $row){
        if($row['rate_type_name'] == null ) $row['rate_type_name'] = 'Standar';
        echo '<tr>';
        echo '<td>'.$row['resv_room_date'].'</td>'.'<td>'.$row['room_number'].'</td>'.
                '<td>'.$row['room_type_name'].'</td>'.'<td>'.$row['rate_type_name'].'</td>'.
                '<td>'.$row['price'].'</td>';
        echo '';
        echo '</tr>';
    }
    ?>
    
</table>